/**
 * long description for the file
 *
 * @summary 菜单管理
 * @author wu[308822989@qq.com]
 *
 * Created at     : 2018-12-28 13:29:05
 * Last modified  : 2019-01-31 16:41:12
 */

import request from '../../utils/request'

export function list(params) {
  return request({
    url: '/admin/menu/index',
    method: 'get',
    params
  })
}

export function del(item) {
    return request({
      url: '/admin/menu/destory',
      method: 'post',
      data: {menu_id: item.menu_id}
    })
}

export function add(data) {
    return request({
      url: '/admin/menu/store',
      method: 'post',
      data: data
    })
}

export function info(data) {
  return request({
    url: '/admin/menu/info',
    method: 'get',
    params: {menu_id: data.menu_id}
  })
}

